<#include "header.htm"/>

<div id="tabs">
			<ul>
				<li><a href="${JForumContext.encodeURL("/admBase/login")}"><span>${I18n.getMessage("Admin.general")}</span></a></li>
	
			
				<li><a href="${contextPath}/adminGroups/list${extension}"><span>${I18n.getMessage("Admin.groups")}</span></a></li>
				<li><a href="${contextPath}/adminUsers/list${extension}"><span>${I18n.getMessage("Admin.users")}</span></a></li>
				<li id="activetab"><a href="${contextPath}/adminCategories/list${extension}"><span>${I18n.getMessage("Admin.categories")}</span></a></li>				
				<li><a href="${contextPath}/adminForums/list${extension}"><span>${I18n.getMessage("Admin.forums")}</span></a></li>
				<li><a href="${contextPath}/adminModeration/list${extension}"><span>${I18n.getMessage("Admin.approving")}</span></a></li>
			
				<li><a href="${contextPath}/adminRankings/list${extension}"><span>${I18n.getMessage("Admin.rankings")}</span></a></li>				
				<li><a href="${contextPath}/adminBanning/list${extension}"><span>${I18n.getMessage("Admin.banning")}</span></a></li>
				
				
				
				
				<li><a href="${contextPath}/adminConfig/list${extension}"><span>${I18n.getMessage("Admin.configurations")}</span></a></li>
			
				<li><a href="${contextPath}/adminSmilies/list${extension}"><span>${I18n.getMessage("Admin.smilies")}</span></a></li>
			
				<li><a href="${contextPath}/adminSearchStats/list${extension}"><span>${I18n.getMessage("Admin.search")}</span></a></li>
			
				<li><a href="${contextPath}/adminAttachments/configurations${extension}"><span>${I18n.getMessage("Admin.attachments")}</span></a></li>
			
				<li><a href="${contextPath}/adminCache/list${extension}"><span>${I18n.getMessage("Admin.cache")}</span></a></li>
			
			</ul>
</div>




<div id="acp">
		<div class="panel">
			<span class="corners-top"><span></span></span>
				<div id="content">
				    <div id="main">

<#setting number_format = "#"/>
<#import "macros/group_macros.ftl" as lib>

<form action="${contextPath}/jforum${extension}" method="post" name="form" id="form" accept-charset="${encoding}" onSubmit="return checkGroups()">
<input type="hidden" name="action" value="${action}" />
<input type="hidden" name="module" value="${moduleName}" />

<script language="javascript">
function checkGroups() 
{
	<#if !category?exists>
		if (document.form.groups.selectedIndex == -1) {
			alert("${I18n.getMessage("PermissionControl.atLeastOne")}");
			return false;
		}
	</#if>

	return true;
}
</script>

<#if category?exists>
	<input type="hidden" name="categories_id" value="${category.id}" />
</#if>

<fieldset>
		<legend>${I18n.getMessage("Category.Form.Title")}</legend>
	<dl>
		<dt><label>${I18n.getMessage("Category.Form.CategoryName")}:</label></dt>
		<dd><input type="text" style="WIDTH: 200px" maxlength="150" size="25" name="category_name" value="<#if category?exists>${category.name}</#if>" />
	</dl>
	
	

	
	
			<dl>
				<dt><label for="uploadfile">${I18n.getMessage("Category.Form.Moderate")}:</label></dt>
				<dd>
		           <label><input type="radio" class="radio" name="moderate" value="0" <#if category?exists><#if !category.isModerated()>checked</#if><#else>checked</#if> /> ${I18n.getMessage("User.no")}</label>
				   <label><input type="radio" class="radio" name="moderate" value="1" <#if category?exists && category.isModerated()>checked</#if> /> ${I18n.getMessage("User.yes")}</label>
		        </dd>

			</dl>
			<#if !category?exists>
			<dl>
				<dt><label for="uploadurl">${I18n.getMessage("Category.Form.ChooseGroup")}:</label></dt>
				<dd><@lib.selectFieldGroups "groups", groups, 0, true, selectedList/></dd>
			</dl>
			</#if>
		
		
	</fieldset>

<fieldset class="submit-buttons">
		<input class="button1" type="submit" value="${I18n.getMessage("Category.Form.ClickToUpdate")}" name="submit"/>
</fieldset>


</form>

</div>
</div>
	<span class="corners-bottom"><span></span></span>
</div>
</div>

<#include "bottom.htm"/>
